<?php



namespace App\Providers;

use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;


class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            'SocialiteProviders\\QQ\\QqExtendSocialite@handle',
        ],
        // 支付成功event
        'App\Events\PaymentSuccessEvent' => [
            '\App\Listeners\PaymentSuccessEvent\OrderPaidNotificationListener',
            '\App\Listeners\PaymentSuccessEvent\OrderPaidStatusChangeListener',
            '\App\Listeners\PaymentSuccessEvent\InviteUserRewardListener',
            '\App\Listeners\PaymentSuccessEvent\Credit1RewardListener',
        ],
        'App\Events\RechargeSuccessEvent' => [
            '\App\Listeners\RechargeSuccessEvent\RechargeAccountListener',
            '\App\Listeners\RechargeSuccessEvent\OrderPaidStatusChangeListener',
            '\App\Listeners\RechargeSuccessEvent\OrderPaidNotificationListener',
            '\App\Listeners\RechargeSuccessEvent\TransferBalanceListener',

        ],

        'App\Events\TransferSuccessEvent' => [
            '\App\Listeners\TransferSuccessEvent\TransferBalanceListener',
            '\App\Listeners\TransferSuccessEvent\RedpacketBalanceListener',
            '\App\Listeners\TransferSuccessEvent\NotificationListener',

        ],
        // 订单取消event
        'App\Events\OrderCancelEvent' => [
            '\App\Listeners\OrderCancelEvent\InviteBalanceResumeListener',
        ],

        // 用户注册event
        'App\Events\UserRegisterEvent' => [
            'App\Listeners\UserRegisterEvent\WelcomeMessageListener',
            'App\Listeners\UserRegisterEvent\RegisterIpRecordListener',
            'App\Listeners\UserRegisterEvent\RegisterCredit1RewardListener',
            'App\Listeners\UserRegisterEvent\RegisterSendVipListener',
            'App\Listeners\UserRegisterEvent\RegisterProfileListener',
        ],
        // 用户登录event
        'App\Events\UserLoginEvent' => [
            'App\Listeners\UserLoginEvent\LoginRecordListener',
        ],

        // 用户邀请余额提现处理event
        'App\Events\UserInviteBalanceWithdrawHandledEvent' => [
            'App\Listeners\UserInviteBalanceWithdrawHandledEvent\NotifyListener',
            'App\Listeners\UserInviteBalanceWithdrawHandledEvent\RefundBalanceListener',
        ],
        // 用户看完视频event
        'App\Events\UserVideoWatchedEvent' => [
            'App\Listeners\UserVideoWatchedEvent\UserVideoWatchedListener',
            'App\Listeners\UserVideoWatchedEvent\UserVideoWatchedCredit1RewardListener',
        ],
        // 用户看完录播课程event
        'App\Events\UserCourseWatchedEvent' => [
            'App\Listeners\UserCourseWatchedEvent\UserCourseWatchedListener',
            'App\Listeners\UserCourseWatchedEvent\UserCourseWatchedCredit1RewardListener',
        ],


        // 视频转码完成event
        'App\Events\VideoTranscodeCompleteEvent' => [],
        // 退款已申请
        'App\Events\OrderRefundCreated' => [],
        // 退款已处理[不一定成功]
        'App\Events\OrderRefundProcessed' => [
            'App\Listeners\OrderRefundProcessed\OrderRefundStatusChange',
            'App\Listeners\OrderRefundProcessed\UserNotify',
        ],

        'App\Events\SnapshotCreatedEvent' => [
        ],
        'App\Events\WechatScanEvent' => [
        ],
        'App\Events\ChatRoomMessageEvent' => [
        ],
        // 幻灯片更新事件
        'App\Events\SliderUpdateEvent' => [
            'App\Listeners\SliderUpdateEvent\CacheClearListener',
        ],
        // 平台类目更新
        'App\Events\CategoryUpdateEvent' => [
            'App\Listeners\CategoryUpdateEvent\CacheClearListener',
        ],
        //友情链接
        'App\Events\LinkUpdateEvent' => [
            'App\Listeners\LinkUpdateEvent\CacheClearListener',
        ],


        //店铺分类链接
        'App\Events\MyCategoryUpdateEvent' => [
            'App\Listeners\MyCategoryUpdateEvent\CacheClearListener',
        ],
        //课程章节

        // 导航栏更新事件
        'App\Events\NavUpdateEvent' => [
            'App\Listeners\NavUpdateEvent\CacheClearListener',
        ],

    ];
}
